function electrodes = find_multi_captors(in,centroid, CC)
[pathstr, name, ext] = fileparts(in.path);
if strcmp(ext,'.img')            
    nfo = analyze75info(in.path);
    voxelSize = nfo.PixelDimensions(1:3);
end
if strcmp(ext,'.nii')            
    header = spm_vol(in.path);
    voxelSize = abs([header.mat(1,1) header.mat(2,2) header.mat(3,3)]);
    
end


EL = find_lines(in.El(:,1), in.El(:,2), in.El(:,3));

%voxelSize = nfo.PixelDimensions(1:3);
electrodes = {};
for i = 1:length(EL)
points = [in.El(EL{i},1) in.El(EL{i},2) in.El(EL{i},3)];
p_cor = correct_electrodes(points,voxelSize,centroid,'vox', CC);
electrodes{i} = double(p_cor);
end
electrodes = electrodes(~cellfun('isempty',electrodes)) 


